<aside class="main-sidebar">
    <section class="sidebar">
        <ul class="sidebar-menu">
            <li class="header" style="cursor:pointer;" onclick="window.location.href='/index.html'">[查看站点]</li>

        <#list sidebar as menu>
            <li class="<#if selectindex == menu_index+1>active</#if> treeview">
                <a href="${menu.path!'#'}">
                    ${menu.icon} <span>${menu.name}</span>
                </a>
                <#if menu.childs?size gt 0 >
                <ul class="treeview-menu">
                    <#list menu.childs as child>
                            <li class="<#if selectindex == menu_index+1 && selectchild == child_index+1>active</#if> treeview">
                                <a href="${child.path}">
                                    ${child.icon} <span>${child.name}</span>
                                </a>
                            </li>
                    </#list>
                </ul>
                </#if>
            </li>
        </#list>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>